package com.member.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizCouponReceive;

import java.util.List;

/**
 * 优惠券用户领取记录Mapper接口
 *
 * @author lixinchen
 * @date 2024-05-08
 */
public interface SysBizCouponReceiveMapper extends BaseMapper<SysBizCouponReceive> {
    /**
     * 查询优惠券用户领取记录
     *
     * @param id 优惠券用户领取记录主键
     * @return 优惠券用户领取记录
     */
    public SysBizCouponReceive selectSysBizCouponReceiveById(Long id);

    /**
     * 查询优惠券用户领取记录列表
     *
     * @param sysBizCouponReceive 优惠券用户领取记录
     * @return 优惠券用户领取记录集合
     */
    public List<SysBizCouponReceive> selectSysBizCouponReceiveList(SysBizCouponReceive sysBizCouponReceive);

    /**
     * 新增优惠券用户领取记录
     *
     * @param sysBizCouponReceive 优惠券用户领取记录
     * @return 结果
     */
    public int insertSysBizCouponReceive(SysBizCouponReceive sysBizCouponReceive);

    /**
     * 修改优惠券用户领取记录
     *
     * @param sysBizCouponReceive 优惠券用户领取记录
     * @return 结果
     */
    public int updateSysBizCouponReceive(SysBizCouponReceive sysBizCouponReceive);

    /**
     * 删除优惠券用户领取记录
     *
     * @param id 优惠券用户领取记录主键
     * @return 结果
     */
    public int deleteSysBizCouponReceiveById(Long id);

    /**
     * 批量删除优惠券用户领取记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizCouponReceiveByIds(Long[] ids);

    List<SysBizCouponReceive> queryCouponByUser(SysBizCouponReceive sysBizCouponReceive);

    List<SysBizCouponReceive> selectSysBizCouponReceiveByGoods(SysBizCouponReceive build);
}
